#!/usr/bin/env python

import sys

print "file:", sys.argv[0]

for i in range(1, len(sys.argv)):
    print "arg", i, sys.argv[i]


# ./get_args foo bar
# file: ./get_args.py
# arg 1 foo
# arg 2 bar